<template>
  <div class="account-balance">
    <div class="container balance-list">
      <div class="balance-container balance-common">
        <div class="balance-main">
          <div class="balance-title">
            <img src="~@/assets/img/balance.png" width="16" height="16" />
            通用账户余额
          </div>
          <div class="balance-amount">
            ¥ <span class="amount">8.00</span> 元
          </div>
        </div>
        <div class="balance-desp">可在本公众号支持的所有设备上使用。</div>
        <div class="balance-footer" th:if="${AppConfig.enableCommonBalance}">
          <div class="balance-date"></div>
          <div class="balance-inpour">
            <a href="/pages/wxmp/pay/inpourbalance">充值 &gt;</a>
          </div>
        </div>
      </div>
      <div class="balance-container balance-redpack">
        <div class="balance-main">
          <div class="balance-title">
            <img src="~@/assets/img/redpack.png" width="16" height="16" />
            红包余额
          </div>
          <div class="balance-amount">
            ¥ <span class="amount">6.85</span> 元
          </div>
        </div>
        <div class="balance-desp"></div>
        <div class="balance-footer">
          <div class="balance-inpour"></div>
          <div class="balance-date">
            有效期: <span class="date">2018-07-12 15:33</span>
          </div>
        </div>
      </div>
    </div>
    <div id="templates">
      <div class="balance-container balance-agent">
        <div class="balance-main">
          <div class="balance-title">
            <img src="~@/assets/img/balance.png" width="16" height="16" />
            专用账户余额
          </div>
          <div class="balance-amount">
            ¥ <span class="amount">0.00</span> 元
          </div>
        </div>
        <div class="balance-desp"></div>
        <div class="balance-footer">
          <div class="balance-date"></div>
          <!-- <div class="balance-inpour"><a href="/pages/wxmp/pay/inpourbalance">充值 &gt;</a></div> -->
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {};
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
};
</script>
<style scoped lang="less">
body {
  background: #f1f1f1;
}

.container {
  font-size: 1em;
}

.balance-container {
  margin: 8px;
  border-radius: 8px;
  border: 1px solid #0e68c3;
  padding: 12px;
  background: #efefef;
}

.balance-container .balance-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-container .balance-amount .amount {
  font-size: 1.2em;
  font-weight: bold;
}

.balance-container .balance-desp {
  margin: 8px 0 0 0;
  color: #999;
  font-size: 0.8em;
}

.balance-container .balance-footer {
  margin: 12px 0px 0px 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-container .balance-footer .balance-date {
  color: #999;
  font-size: 0.8em;
}
</style>
